projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a93b0fe
)
sunxi: Fix clock_twi_onoff for sun9i
author
Hans de Goede
<
[email protected]
>
Wed, 16 Mar 2016 19:58:41 +0000
(20:58 +0100)
committer
Hans de Goede
<
[email protected]
>
Wed, 23 Mar 2016 21:04:13 +0000
(22:04 +0100)
Fix a copy and paste error which caused us to use the uart rather then
the twi reset bits in clock_twi_onoff for sun9i.
Signed-off-by: Hans de Goede <
[email protected]
>
Acked-by: Ian Campbell <
[email protected]
>
arch/arm/cpu/armv7/sunxi/clock_sun9i.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/armv7/sunxi/clock_sun9i.c
b/arch/arm/cpu/armv7/sunxi/clock_sun9i.c
index 27179ba19c601b4ed99ec2bf5b47778e1b278a68..180634c838932de6f596c8098d002e8e0fee60c6 100644
(file)
--- a/
arch/arm/cpu/armv7/sunxi/clock_sun9i.c
+++ b/
arch/arm/cpu/armv7/sunxi/clock_sun9i.c
@@
-43,10
+43,10
@@
int clock_twi_onoff(int port, int state)
setbits_le32(&ccm->apb1_gate,
CLK_GATE_OPEN << (APB1_GATE_TWI_SHIFT + port));
setbits_le32(&ccm->apb1_reset_cfg,
- 1 << (APB1_RESET_
UART
_SHIFT + port));
+ 1 << (APB1_RESET_
TWI
_SHIFT + port));
} else {
clrbits_le32(&ccm->apb1_reset_cfg,
- 1 << (APB1_RESET_
UART
_SHIFT + port));
+ 1 << (APB1_RESET_
TWI
_SHIFT + port));
clrbits_le32(&ccm->apb1_gate,
CLK_GATE_OPEN << (APB1_GATE_TWI_SHIFT + port));
}